package com.yequan.work;

import java.text.ParseException;
import java.util.Date;

/**
 * @author yequan
 * @date 2021/04/22 17:33
 **/
public class CarpoolIntercityFeeRuleModelTemporaryDemo {

    public static void main(String[] args) throws ParseException {
        CarpoolIntercityFeeRuleModelTemporary carpoolIntercityFeeRuleModelTemporary = new CarpoolIntercityFeeRuleModelTemporary();
        carpoolIntercityFeeRuleModelTemporary.setIntercityFeeRule("1");
        carpoolIntercityFeeRuleModelTemporary.setIntercityServeFeeContent("2");
        carpoolIntercityFeeRuleModelTemporary.setIntercityServeFeeRule("3");
        carpoolIntercityFeeRuleModelTemporary.setStartTime("20210422000000");
        carpoolIntercityFeeRuleModelTemporary.setEndTime("20210506000000");
        carpoolIntercityFeeRuleModelTemporary.setType("A");
        System.out.println(JsonMapper.toJson(carpoolIntercityFeeRuleModelTemporary));
        String j= "{\"endTime\":\"20210506000000\",\"intercityFeeRule\":\"1444\",\"intercityServeFeeContent\":\"24444\",\"intercityServeFeeRule\":\"3\",\"startTime\":\"20210422000000\",\"type\":\"A\"}";


        BaseInterFeeTemporary baseInterFeeTemporary = new BaseInterFeeTemporary();
        baseInterFeeTemporary.setCityType("A");
        baseInterFeeTemporary.setInterFeeRule("a-2");
        baseInterFeeTemporary.setInterFeeRuleContent("a-1-c");
        baseInterFeeTemporary.setInterServeFeeRule("s-1");
        baseInterFeeTemporary.setStartTime(DateUtil.string2Date("20210422000000"));
        baseInterFeeTemporary.setEndTime(DateUtil.string2Date("20210506000000"));
        baseInterFeeTemporary.setCreateTime(new Date());
        baseInterFeeTemporary.setStatus(1);
        System.out.println(JsonMapper.toJson(baseInterFeeTemporary));
        String s="{\"cityType\":\"A\",\"createTime\":1619149602976,\"endTime\":1620230400000,\"interFeeRule\":\"a-2\",\"interFeeRuleContent\":\"a-1-c\",\"interServeFeeRule\":\"s-1\",\"startTime\":1619020800000,\"status\":1}";
    }

}
